home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-06 / an110x.zip / MAKEFILE < prev   
Text File  |  1991-10-01  |  2KB  |  48 lines

  1. # Commands to execute before making any target
  2. # Set environment variables for compiler
  3. .BEFORE
  4.     @set inc386=f:\prog\nwcnlms\h
  5.     @set wcg386=f:\prog\nwcnlms\bin\386wcgl.exe
  6.  
  7. #################################################################
  8. # Macro definitions
  9. NLMNAME = hellou
  10. DESCRIPTION = Hello Universe (network hello)
  11. VERSION = 0.10
  12. COPYRIGHT = (c) Copyright 1991, Novell, Inc.
  13. SCREENNAME = Hello Universe
  14. CLIBIMP = f:\prog\nwcnlms\imp\clib.imp
  15. OBJFILE = $NLMNAME.obj
  16. PRELUDE = f:\prog\nwcnlms\imp\prelude.obj
  17. COMPILE = wcc386p /zq /d2 /3s
  18. LINK = wlink
  19. #################################################################
  20.  
  21. # All .obj files implicitly depend on .c files
  22. .c.obj:
  23.     @echo Compiling $[*.c
  24.     @$COMPILE $[*.c
  25.  
  26. # If .obj or .lnk files are modified, link new .nlm
  27. $NLMNAME.nlm : $OBJFILE $NLMNAME.lnk
  28.     @$LINK @$NLMNAME
  29.  
  30. # If makefile is modified, create new linker option file
  31. $NLMNAME.lnk : makefile
  32.     @echo FORMAT    NOVELL NLM '$DESCRIPTION'                  >$NLMNAME.lnk
  33.     @echo OPTION    THREADNAME '$NLMNAME'                     >>$NLMNAME.lnk
  34.     @echo DEBUG    ALL                                       >>$NLMNAME.lnk
  35.     @echo FILE    $OBJFILE                                  >>$NLMNAME.lnk
  36.     @echo FILE    $PRELUDE                                  >>$NLMNAME.lnk
  37.     @echo OPTION    MAP                                       >>$NLMNAME.lnk
  38.     @echo OPTION    VERSION=$VERSION                          >>$NLMNAME.lnk
  39.     @echo OPTION    COPYRIGHT '$COPYRIGHT'                    >>$NLMNAME.lnk
  40.     @echo NAME    $NLMNAME                                  >>$NLMNAME.lnk
  41.     @echo MODULE    clib                                      >>$NLMNAME.lnk
  42.     @echo OPTION    SCREENNAME '$SCREENNAME'                  >>$NLMNAME.lnk
  43.     @echo IMPORT    @$CLIBIMP                                 >>$NLMNAME.lnk
  44.  
  45. # If .c file is modified, compile new .obj
  46. $NLMNAME.obj : $NLMNAME.c
  47.  
  48.